<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" isErrorPage="true"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
Welcome,you create a webapp!

<%
session.setAttribute("name", "fhzheng");	
String id = session.getId();
out.println("<br>创建的sessionid是："+id);

%>


</body>
</html>